package LeetCode刷题;

/**
 * @program: Java_Study
 * @author: Xiaofan
 * @createTime: 2022-01-18 10:28
 * @description: Functions of this class is
 * 官方题解（使用二分来去找）：
 * class Solution {
 *     public boolean findNumberIn2DArray(int[][] matrix, int target) {
 *         if (matrix == null || matrix.length == 0 || matrix[0].length == 0) {
 *             return false;
 *         }
 *         int rows = matrix.length, columns = matrix[0].length;
 *         int row = 0, column = columns - 1;
 *         while (row < rows && column >= 0) {
 *             int num = matrix[row][column];
 *             if (num == target) {
 *                 return true;
 *             } else if (num > target) {
 *                 column--;
 *             } else {
 *                 row++;
 *             }
 *         }
 *         return false;
 *     }
 * }
 **/
public class No二维矩阵的查找 {

}